package org.hoefling.bean.auction;

import de.dailab.jiactng.agentcore.comm.IGroupAddress;
import de.dailab.jiactng.agentcore.knowledge.IFact;
import java.util.Collection;
import java.util.Collections;
import org.hoefling.ontology.AuctionGroup;

/**
 *
 * @author Kseniya
 */
public abstract class AuctionMember extends TeamMember {

    @Override
    protected Collection<IGroupAddress> getGroups() {
        return Collections.singleton(getGroup());
    }

    protected final IGroupAddress getGroup() {
        return AuctionGroup.getInstance().getAddress();
    }

    protected final void sendMsgGroup(IFact payload) {
        sendMsgGroup(payload, getGroup());
    }
}
